package com.sgcc.operate.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sgcc.common.core.annotation.Excel;
import com.sgcc.common.core.web.domain.BaseEntity;

/**
 * 人群规则条件对象 o_crowd_attr
 * 
 * @author sgcc
 * @date 2021-03-23
 */
public class OCrowdAttr extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人群规则条件id */
    @Excel(name = "人群规则条件id")
    private String id;

    /** 人群规则定义id */
    @Excel(name = "人群规则定义id")
    private String crowdid;

    /** 人群规则属性id */
    @Excel(name = "人群规则属性id")
    private String ruleattrid;

    /** 规则属性字段id */
    @Excel(name = "规则属性字段id")
    private String attrfieldid;

    /** 下限值 */
    @Excel(name = "下限值")
    private String lowervalue;

    /** 上限值 */
    @Excel(name = "上限值")
    private String uppervalue;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    @Excel(name = "逻辑删除标记", readConverterExp = "0=：显示；1：隐藏")
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCrowdid(String crowdid) 
    {
        this.crowdid = crowdid;
    }

    public String getCrowdid() 
    {
        return crowdid;
    }
    public void setRuleattrid(String ruleattrid) 
    {
        this.ruleattrid = ruleattrid;
    }

    public String getRuleattrid() 
    {
        return ruleattrid;
    }
    public void setAttrfieldid(String attrfieldid) 
    {
        this.attrfieldid = attrfieldid;
    }

    public String getAttrfieldid() 
    {
        return attrfieldid;
    }
    public void setLowervalue(String lowervalue) 
    {
        this.lowervalue = lowervalue;
    }

    public String getLowervalue() 
    {
        return lowervalue;
    }
    public void setUppervalue(String uppervalue) 
    {
        this.uppervalue = uppervalue;
    }

    public String getUppervalue() 
    {
        return uppervalue;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("crowdid", getCrowdid())
            .append("ruleattrid", getRuleattrid())
            .append("attrfieldid", getAttrfieldid())
            .append("lowervalue", getLowervalue())
            .append("uppervalue", getUppervalue())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
